<?php
function komesarijat_autoload($class_name) {
	$class_root = array(
            "IniParser" => "ini/",
            "Actions" => "settings/",
			"Localization" => "settings/",
            "Modal" => "modals/",
            "User" => "modals/",
            "DBManager" => "connections/",
            "XmlFetcher" => "connections/",
            "ClassBuilders" => "utils/",
            "Log" => "utils/",
            "Headers" => "utils/",
            "Security" => "utils/"
	);

	if (isset($class_root[$class_name])) {
		require_once $class_root[$class_name] . $class_name . '.class.inc';
	}
}

spl_autoload_register('komesarijat_autoload');
?>
